{% extends "base.html" %}
{% block title %}Code Highlight{% endblock %}
{% block topmenu %}{% endblock %}
{% block head_block %}
{% endblock %}
{% block content%}
	<div id="page">
		<div id="content" class="content" style="width:96%">
		<h1>Code Highlight powered by pygments</h1>
		<div style="width:100%;">
		{{newcontent}}
		{{css}}
		</div>
		<form action="/highlight" method="post">
			<div>language:  
			<select name="lang">
			{% for lang in languages %}
			<option {%ifequal curlang lang %}selected="selected"{%endifequal%} value="{{lang}}">{{lang}}</option>
			{% endfor %}
			</select>
			styles:  
			<select name="style">
			{% for style in styles %}
			<option {%ifequal curstyle style %}selected="selected"{%endifequal%} value="{{style}}">{{style}}</option>
			{% endfor %}
			</select>
			<input type="submit" value="submit"/>
			</div>
			<div><textarea style="width:100%;" rows="36" id="source" name="source">{{content|escape}}</textarea></div>
		</form>
		</div>	
	</div>		
	<!-- end #content -->
	<div style="clear: both;">&nbsp;</div>
{% endblock %}

